import { ApiProperty } from '@nestjs/swagger';

export class OperationLogResponseDto {
  @ApiProperty()
  id: number;

  @ApiProperty({ required: false })
  ip?: string;

  @ApiProperty({ required: false })
  userId?: number;

  @ApiProperty({ required: false })
  username?: string;

  @ApiProperty()
  method: string;

  @ApiProperty()
  path: string;

  @ApiProperty()
  operationType: string;

  @ApiProperty({ required: false })
  userAgent?: string;

  @ApiProperty()
  status: number;

  @ApiProperty()
  duration: number;

  @ApiProperty()
  createdAt: Date;
}

